

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>简历登记</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">
</head>
<body>

<form id="myform" name="myform" enctype="multipart/form-data; charset=UTF-8" accept-charset="UTF-8" class="layui-form" lay-filter="layuiadmin-form-admin"
      id="layuiadmin-form-admin"
      style="padding: 20px 30px 0 0;">

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">应聘职位名称</label>
            <div class="layui-input-inline">
                <input type="text" name="job_title" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">应聘职位编码</label>
            <div class="layui-input-inline">
                <input type="text" name="job_code" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">职位分类</label>
            <div class="layui-input-inline">
                <input type="text" name="job_classification" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>


    </div>
    <!--第二行元素-->
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-inline">
                <input type="text" name="name" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-inline">
                <select name="sex" lay-verify="required" lay-search="">
                    <option value="">直接选择或搜索选择</option>
                    <option value="男">男</option>
                    <option value="女">女</option>
                </select>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">招聘类型</label>
            <div class="layui-input-inline">
                <select name="recruitment_type" lay-verify="required" lay-search="">
                    <option value="">直接选择或搜索选择</option>
                    <option value="校园招聘">校园招聘</option>
                    <option value="社会招聘">社会招聘</option>
                </select>
            </div>
        </div>
    </div>
    <!--第三行元素-->
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">email</label>
            <div class="layui-input-inline">
                <input type="text" name="email" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-inline">
                <input type="text" name="phone" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">户口所在地</label>
            <div class="layui-input-inline">
                <input type="text" name="registered_residence" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <!--第四行-->
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">住址</label>
            <div class="layui-input-inline">
                <input type="text" name="address" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">政治面貌</label>
            <div class="layui-input-inline">
                <input type="text" name="political_landscape" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <!--第五行-->
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">身份证号</label>
            <div class="layui-input-inline">
                <input type="text" name="id_number" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">毕业院校</label>
            <div class="layui-input-inline">
                <input type="text" name="graduate_school" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">学历</label>
            <div class="layui-input-inline">
                <select name="education_background" lay-verify="required" lay-search="">
                    <option value="">直接选择或搜索选择</option>
                    <option value="初中">初中</option>
                    <option value="高中">高中</option>
                    <option value="专科">专科</option>
                    <option value="本科">本科</option>
                    <option value="硕士">硕士</option>
                    <option value="博士">博士</option>
                </select>
            </div>
        </div>
    </div>
<!--    第六行-->
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">专业</label>
            <div class="layui-input-inline">
                <input type="text" name="major" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">工作经验</label>
            <div class="layui-input-inline">
                <input type="text" name="work_experience" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">薪资要求</label>
            <div class="layui-input-inline">
                <input type="text" name="salary_requirement" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
<!--    第七行-->
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">是否在职</label>
            <div class="layui-input-inline">
                <select name="whether_in_office" lay-verify="required" lay-search="">
                    <option value="">直接选择或搜索选择</option>
                    <option value="是">是</option>
                    <option value="否">否</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">是否应届生</label>
            <div class="layui-input-inline">
                <select name="fresh_graduate" lay-verify="required" lay-search="">
                    <option value="">直接选择或搜索选择</option>
                    <option value="是">是</option>
                    <option value="否">否</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">登记时间</label>
            <div class="layui-input-inline">
                <input type="text" name="registration_time" id="registration_time" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
<!--    第八行-->
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">个人履历</label>
        <div class="layui-input-block">
            <textarea name="personal_resume" id="personal_resume" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
<!--  第九行  -->
    <div class="layui-form-item">
        <label class="layui-form-label required">简历附件</label>
        <div class="layui-input-inline">
            <input type="file" name="resume_attachment">
        </div>
    </div>

<!--    第十行-->


    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">是否推荐面试</label>
            <div class="layui-input-inline">
                <select name="recommend_the_interview" lay-verify="required" lay-search="">
                    <option value="">直接选择或搜索选择</option>
                    <option value="推荐面试">推荐面试</option>
                    <option value="否">否</option>
                </select>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">推荐人</label>
            <div class="layui-input-inline">
                <input type="text" name="referrer" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">推荐时间</label>
            <div class="layui-input-inline">
                <input type="text" name="the_recommended_time" id="the_recommended_time" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
<!--    第十一行-->
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">推荐面试意见</label>
        <div class="layui-input-block">
            <textarea name="recommended_Interview_advice" id="recommended_Interview_advice" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
<!--    隐藏ID-->
    <input type="text" hidden name="resume_id" >

    <!--确认提交-->
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-back-submit" value="确认">
    </div>
</form>


<!--引入本地layui.js-->
<script src="../../static/layui/layui.js"></script>
<!--js-->
<script type="text/javascript">
    layui.config({
        base: '../../static/layui/layuiadmin/' //静态资源所在路径js
    }).extend({
        index: 'lib/index' //主入口模块
    }).use('index');
</script>
<script>
    layui.use('laydate', function() {
        var laydate = layui.laydate;
        //常规用法
        laydate.render({
            elem: '#registration_time'
        });

    });
    layui.use('laydate', function() {
        var laydate = layui.laydate;
        //常规用法
        laydate.render({
            elem: '#the_recommended_time'
        });

    });


</script>
<!--文件上传-->
<!--<script>-->
<!--    layui.use('upload', function () {-->
<!--        var upload = layui.upload;//得到 upload 对象-->
<!--        var formData = new FormData(form);-->
<!--        //执行实例-->
<!--        //创建一个上传组件-->
<!--        var uploadInst = upload.render({-->
<!--            elem: '#upload' //绑定元素-->
<!--            , url: '/upload' //上传接口-->
<!--            , done: function (res) {-->
<!--                //上传完毕回调-->
<!--            }-->
<!--            , error: function () {-->
<!--                //请求异常回调-->
<!--            }-->
<!--            , accept: 'file' //允许上传的文件类型-->
<!--            // ,size: 50 //最大允许上传的文件大小-->
<!--            , exts: 'doc|docx|txt'//允许的文件后缀-->
<!--            , drag: true//接受拖拽上传-->
<!--        });-->
<!--    });-->
<!--</script>-->
<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 -->
<script>
    layui.use(['form', 'layedit', 'laydate','upload','layer'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate
            ,upload = layui.upload
            ,layer = layui.layer;

        //自定义验证规则
        form.verify({
            title: function(value){
                if(value.length < 5){
                    return '标题至少得5个字符啊';
                }
            }
            ,pass: [
                /^[\S]{6,12}$/
                ,'密码必须6到12位，且不能出现空格'
            ]
            ,content: function(value){
                layedit.sync(editIndex);
            }
        });




    });



</script>

</body>
</html>


</body>
</html>